<!DOCTYPE html>
<html>
<head>
    <title>平涛</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wechat/css/weui.min.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wechat/css/jquery-weui.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wechat/css/style.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wechat/css/aui-iconfont.css">

</head>


<body ontouchstart>
    <div class="weui_tab">
        <div class="weui_navbar weui_navbar1">
            <div class="weui_navbar_item weui_bar_item_on">
                <!-- <div style="text-align:left;float:left">
                    <a href='javascript:history.go(-1)'>
                        <span class="aui-iconfont aui-icon-left"></span>
                    </a>
                </div> -->
                <span>工作总结</span>
                <div class="f-r">
                    <a href="{:U('Work/add')}">
                        <span class="weui_tabbar_label aui-iconfont aui-icon-add"></span>
                    </a>
                </div>
            </div>
        </div>

        <div class="weui_tab_bd">
            <volist name="workList" id="val">
                <div class="weui_panel_bd">
                    <a href="{:U('Work/detail',array('id'=>$val['id']))}">
                        <div class="weui_media_box weui_media_text p-t1">
                            <div class="con-head1">
                                <div class="weui_media_title con-head2">{$val.add_name}</div>
                                <div class="f-r rb1" >{$val.date}</div>
                            </div>
                            <p class="weui_media_desc wid2" id="txt">
                                {$val.content|default="无"}
                            </p>
                        </div>
                    </a>
                </div>
            </volist>
        </div>

        <include file="Index/footer" />

    </div>


    <script src="__PUBLIC__/Wechat/js/jquery-2.1.4.js"></script>
    <script src="__PUBLIC__/Wechat/js/fastclick.js"></script>
    <script src="__PUBLIC__/Wechat/js/jquery-weui.js"></script>
    <script>
        $(function() {
            FastClick.attach(document.body);
        });
        
        var loading = false;
            $(document.body).infinite().on("infinite", function() {
                if(loading) return;
                loading = true;
                // alert("dkd");
	        	$.ajax({
                	url:"{:U('Index/test')}",
                	dataType:'json',
                	type:'post',
                
                	success:function(json){
                	    
                	    alert(json)
    //             		if(data.trim() == "ok"){
				// 		alert("加载成功!");
				// 		window.location.reload();
				// 		}else{
				// 			alert("请重新刷新！");
				// 		}

                	}
	        	})
                
        });
    </script>

  </body>
</html>
